/**
 * 主路由
 * @description 主路由相关的路由配置
 */
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {IndexComponent} from './index/index.component';
import {NoticeListComponent} from "./notice/notice-list/notice-list.component";
import {NoticeDetailComponent} from "./notice/notice-detail/notice-detail.component";


const mainRoutings: Routes = [
  {path: '', redirectTo: 'index', pathMatch: 'full'}
  , {path: 'index', component: IndexComponent} // 首页
  , {path: 'notice-list', component: NoticeListComponent} // 通知列表
  , {path: 'notice-detail', component: NoticeDetailComponent} // 通知详情
  , {path: 'withdraw-cash', loadChildren: './withdraw-cash/withdraw.module#WithdrawModule'} // 提现管理
  , {path: 'set', loadChildren: './set/set.module#SetModule'} // 个人设置
  , {path: 'merchant', loadChildren: './merchant/merchant.module#MerchantModule'} // 商户数据
];

@NgModule({
  imports: [RouterModule.forChild(mainRoutings)],
  exports: [RouterModule],
  providers: []
})

export class MainRoutingModule {
}
